const { User } = require('./models');

async function queryUsers() {
  try {
    const users = await User.findAll({
      attributes: ['id', 'email', 'password'],
      raw: true
    });
    
    console.log('Users:');
    console.log(users);
    
    process.exit(0);
  } catch (error) {
    console.error('Unable to query users:', error);
    process.exit(1);
  }
}

queryUsers();